package com.example.queryexpressdelivery_01.entity;

import java.util.HashMap;
import java.util.Map;

public class AdminData {
    private int id;
    private String account;
    private String phone;
    private String password;
    private String email;

    public int getId() {
        return id;
    }

    public String getAccount() {
        return account;
    }

    public String getPhone() {
        return phone;
    }

    public String getPassword() {
        return password;
    }

    public String getEmail() {
        return email;
    }

    public AdminData(int id, String account, String phone, String password, String email){
        this.id = id;
        this.account = account;
        this.phone = phone;
        this.password = password;
        this.email = email;
    }
    public AdminData(String account,String phone,String password, String email){
        this.account = account;
        this.phone = phone;
        this.password = password;
        this.email = email;
        //123
    }

    public Map<String, String> toStringMap() {
        Map<String,String> result = new HashMap<>();
        result.put("id", String.valueOf(id));
        result.put("account",account);
        result.put("phone",phone);
        result.put("password",password);
        result.put("email",email);
        return result;
    }
}
